package com.sssta.qinbot.core.plugin;

import java.util.Random;

import com.sssta.qinbot.model.Message;
public class SimpleAnswerPlugin extends PluginBase {
	Random random = new Random(System.currentTimeMillis());
	String[] who = new String[]{"我是你男人你忘啦＝。＝","大家都叫我那个帅哥＃。＃","不要装傻！！","其实我是个小正太😊"};
	
	public SimpleAnswerPlugin(){
		name = "simpleAnswerPlugin";
		version = "0.1";
		author = "shiminjun";
		descrition ="做一个大方的bot";
		help = "当你问他是谁的时候，他就会羞羞的自我介绍";
	}

	@Override
	public boolean onResponse(Message message) {
		if(message.content.toLowerCase().startsWith("@liubot")|message.content.startsWith("@那个帅哥")){
			if(message.content.contains("是谁")){
				message.reply(who[random.nextInt(who.length)]);
				return true;
			}
		}
		return false;
	}
	
}
